<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/vue/2.4.2/vue.js"></script>
</head>
<body>
<style>
    .red {color: red}
    .blue{color: blue}
</style>
    <div id="app">
        <div :class="{'red' : red}">
            红色字
        </div>
        <div v-bind:class="{'blue' : blue}">
            蓝色字
        </div>
        <img :src="image">
    </div>
<script>
    new Vue({
        el : '#app',
        data : {
            red : false,
            blue : true,
            image : './image/logo.png'
        }
    })
</script>
</body>
</html>